package com.example.wangrui137.androidtest1;

import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TextView;

import com.woerry.wrhttpclient.Service.HttpClientProcesser;

public class MainActivity extends AppCompatActivity {

    private TextView textView5;
    private Spinner spinner;
    private Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textView5=findViewById(R.id.textView5);
        spinner=findViewById(R.id.spinner);
        button=findViewById(R.id.button2);
        final AlertDialog dialog;
        dialog=new AlertDialog.Builder(this).setTitle("警告")
                .setMessage("请输入您的HR工号")
                .setIcon(R.mipmap.ic_launcher)
                .setPositiveButton("确定",null)
                .create();
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if(textView5.getText()!=null&&!textView5.getText().equals("")){

                }else{
                dialog.show();
                }
            }
        });
    }
}
